home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / latex209 / contrib / geom / illustrator.pro < prev    next >
Text File  |  1993-01-11  |  12KB  |  873 lines

  1. %%BeginResource: procset Adobe_packedarray 2.0 0
  2. %%Title: (Packed Array Operators)
  3. %%Version: 2.0 
  4. %%CreationDate: (8/2/90) ()
  5. %%Copyright: ((C) 1987-1990 Adobe Systems Incorporated All Rights Reserved)
  6.  
  7. userdict /Adobe_packedarray 5 dict dup begin put
  8. /initialize            % - initialize -
  9. {
  10. /packedarray where
  11.     {
  12.     pop
  13.     }
  14.     {
  15.     Adobe_packedarray begin
  16.     Adobe_packedarray
  17.         {
  18.         dup xcheck
  19.             {
  20.             bind
  21.             } if
  22.         userdict 3 1 roll put
  23.         } forall
  24.     end
  25.     } ifelse
  26. } def
  27. /terminate            % - terminate -
  28. {
  29. } def
  30. /packedarray        % arguments count packedarray array
  31. {
  32. array astore readonly
  33. } def
  34. /setpacking            % boolean setpacking -
  35. {
  36. pop
  37. } def
  38. /currentpacking        % - setpacking boolean
  39. {
  40. false
  41. } def
  42. currentdict readonly pop end
  43. %%EndResource
  44. %%BeginResource: procset Adobe_cmykcolor 1.1 0
  45. %%Title: (CMYK Color Operators)
  46. %%Version: 1.1 
  47. %%CreationDate: (1/23/89) ()
  48. %%Copyright: ((C) 1987-1990 Adobe Systems Incorporated All Rights Reserved)
  49.  
  50. currentpacking true setpacking
  51. userdict /Adobe_cmykcolor 4 dict dup begin put
  52. /initialize            % - initialize -
  53. {
  54. /setcmykcolor where
  55.     {
  56.     pop
  57.     }
  58.     {
  59.     userdict /Adobe_cmykcolor_vars 2 dict dup begin put
  60.     /_setrgbcolor
  61.         /setrgbcolor load def
  62.     /_currentrgbcolor
  63.         /currentrgbcolor load def
  64.     Adobe_cmykcolor begin
  65.     Adobe_cmykcolor
  66.         {
  67.         dup xcheck
  68.             {
  69.             bind
  70.             } if
  71.         pop pop
  72.         } forall
  73.     end
  74.     end
  75.     Adobe_cmykcolor begin
  76.     } ifelse
  77. } def
  78. /terminate            % - terminate -
  79. {
  80. currentdict Adobe_cmykcolor eq
  81.     {
  82.     end
  83.     } if
  84. } def
  85. /setcmykcolor        % cyan magenta yellow black setcmykcolor -
  86. {
  87. 1 sub 4 1 roll
  88. 3
  89.     {
  90.     3 index add neg dup 0 lt
  91.         {
  92.         pop 0
  93.         } if
  94.     3 1 roll
  95.     } repeat
  96. Adobe_cmykcolor_vars /_setrgbcolor get exec
  97. pop
  98. } def 
  99. /currentcmykcolor    % - currentcmykcolor cyan magenta yellow black
  100. {
  101. Adobe_cmykcolor_vars /_currentrgbcolor get exec
  102. 3
  103.     {
  104.     1 sub neg 3 1 roll
  105.     } repeat
  106. 0
  107. } def
  108. currentdict readonly pop end
  109. setpacking
  110.  
  111. %%EndResource
  112. %%BeginResource: procset Adobe_cshow 1.1 0
  113. %%Title: (cshow Operator)
  114. %%Version: 1.1 
  115. %%CreationDate: (1/23/89) ()
  116. %%Copyright: ((C) 1987-1990 Adobe Systems Incorporated All Rights Reserved)
  117.  
  118. currentpacking true setpacking
  119. userdict /Adobe_cshow 3 dict dup begin put
  120. /initialize            % - initialize -
  121. {
  122. /cshow where
  123.     {
  124.     pop
  125.     }
  126.     {
  127.     userdict /Adobe_cshow_vars 1 dict dup begin put
  128.     /_cshow        % - _cshow proc
  129.         {} def
  130.     Adobe_cshow begin
  131.     Adobe_cshow
  132.         {
  133.         dup xcheck
  134.             {
  135.             bind
  136.             } if
  137.         userdict 3 1 roll put
  138.         } forall
  139.     end
  140.     end
  141.     } ifelse
  142. } def
  143. /terminate            % - terminate -
  144. {
  145. } def
  146. /cshow                % proc string cshow -
  147. {
  148. exch
  149. Adobe_cshow_vars
  150.     exch /_cshow
  151.     exch put
  152.     {
  153.     0 0 Adobe_cshow_vars /_cshow get exec
  154.     } forall
  155. } def
  156. currentdict readonly pop end
  157. setpacking
  158.  
  159. %%EndResource
  160. %%BeginResource: procset Adobe_customcolor 1.0 0
  161. %%Title: (Custom Color Operators)
  162. %%Version: 1.0 
  163. %%CreationDate: (5/9/88) ()
  164. %%Copyright: ((C) 1987-1990 Adobe Systems Incorporated All Rights Reserved)
  165.  
  166. currentpacking true setpacking
  167. userdict /Adobe_customcolor 5 dict dup begin put
  168. /initialize            % - initialize -
  169. {
  170. /setcustomcolor where
  171.     {
  172.     pop
  173.     }
  174.     {
  175.     Adobe_customcolor begin
  176.     Adobe_customcolor
  177.         {
  178.         dup xcheck
  179.             {
  180.             bind
  181.             } if
  182.         pop pop
  183.         } forall
  184.     end
  185.     Adobe_customcolor begin
  186.     } ifelse
  187. } def
  188. /terminate            % - terminate -
  189. {
  190. currentdict Adobe_customcolor eq
  191.     {
  192.     end
  193.     } if
  194. } def
  195. /findcmykcustomcolor    % cyan magenta yellow black name findcmykcustomcolor object
  196. {
  197. 5 packedarray
  198. }  def
  199. /setcustomcolor        % object tint setcustomcolor -
  200. {
  201. exch
  202. aload pop pop
  203. 4
  204.     {
  205.     4 index mul 4 1 roll
  206.     } repeat
  207. 5 -1 roll pop
  208. setcmykcolor
  209. } def
  210. /setoverprint        % boolean setoverprint -
  211. {
  212. pop
  213. } def
  214. currentdict readonly pop end
  215. setpacking
  216.  
  217. %%EndResource
  218. %%BeginResource: procset Adobe_IllustratorA_AI3 1.0 1
  219. %%Title: (Adobe Illustrator (R) Version 3.0 Abbreviated Prolog)
  220. %%Version: 1.0 
  221. %%CreationDate: (7/22/89) ()
  222. %%Copyright: ((C) 1987-1990 Adobe Systems Incorporated All Rights Reserved)
  223.  
  224. currentpacking true setpacking
  225. userdict /Adobe_IllustratorA_AI3 61 dict dup begin put
  226. % initialization
  227. /initialize                % - initialize -
  228. {
  229. % 47 vars, but leave slack of 10 entries for custom Postscript fragments
  230. userdict /Adobe_IllustratorA_AI3_vars 57 dict dup begin put
  231.  
  232. % paint operands
  233. /_lp /none def
  234. /_pf {} def
  235. /_ps {} def
  236. /_psf {} def
  237. /_pss {} def
  238. /_pjsf {} def
  239. /_pjss {} def
  240. /_pola 0 def
  241. /_doClip 0 def
  242.  
  243. % paint operators
  244. /cf    currentflat def    % - cf flatness
  245.  
  246. % typography operands
  247. /_tm matrix def
  248. /_renderStart [/e0 /r0 /a0 /o0 /e1 /r1 /a1 /i0] def 
  249. /_renderEnd [null null null null /i1 /i1 /i1 /i1] def
  250. /_render -1 def
  251. /_rise 0 def
  252. /_ax 0 def            % x character spacing    (_ax, _ay, _cx, _cy follows awidthshow naming convention)
  253. /_ay 0 def            % y character spacing
  254. /_cx 0 def            % x word spacing
  255. /_cy 0 def            % y word spacing
  256. /_leading [0 0] def
  257. /_ctm matrix def
  258. /_mtx matrix def
  259. /_sp 16#020 def
  260. /_hyphen (-) def
  261. /_fScl 0 def
  262. /_cnt 0 def
  263. /_hs 1 def
  264. /_nativeEncoding 0 def
  265. /_useNativeEncoding 0 def
  266. /_tempEncode 0 def
  267. /_pntr 0 def
  268. /_tDict 2 dict def
  269.  
  270. % typography operators
  271. /Tx {} def
  272. /Tj {} def
  273.  
  274. % compound path operators
  275. /CRender {} def
  276.  
  277. % printing
  278. /_AI3_savepage {} def
  279.  
  280. % color operands
  281. /_gf null def
  282. /_cf 4 array def
  283. /_if null def
  284. /_of false def
  285. /_fc {} def
  286. /_gs null def
  287. /_cs 4 array def
  288. /_is null def
  289. /_os false def
  290. /_sc {} def
  291. /_i null def
  292. Adobe_IllustratorA_AI3 begin
  293. Adobe_IllustratorA_AI3
  294.     {
  295.     dup xcheck
  296.         {
  297.         bind
  298.         } if
  299.     pop pop
  300.     } forall
  301. end
  302. end
  303. Adobe_IllustratorA_AI3 begin
  304. Adobe_IllustratorA_AI3_vars begin
  305. newpath
  306. } def
  307. /terminate                % - terminate -
  308. {
  309. end
  310. end
  311. } def
  312. % definition operators
  313. /_                    % - _ null
  314. null def
  315. /ddef                % key value ddef -
  316. {
  317. Adobe_IllustratorA_AI3_vars 3 1 roll put
  318. } def
  319. /xput                % key value literal xput -
  320. {
  321. dup load dup length exch maxlength eq
  322.     {
  323.     dup dup load dup
  324.     length 2 mul dict copy def
  325.     } if
  326. load begin def end
  327. } def
  328. /npop                % integer npop -
  329. {
  330.     {
  331.     pop
  332.     } repeat
  333. } def
  334. % marking operators
  335. /sw                    % ax ay string sw x y 
  336. {
  337. dup length exch stringwidth
  338. exch 5 -1 roll 3 index 1 sub mul add
  339. 4 1 roll 3 1 roll 1 sub mul add
  340. } def
  341. /swj                % cx cy fillchar ax ay string swj x y
  342. {
  343. dup 4 1 roll
  344. dup length exch stringwidth 
  345. exch 5 -1 roll 3 index 1 sub mul add
  346. 4 1 roll 3 1 roll 1 sub mul add 
  347. 6 2 roll /_cnt 0 ddef
  348. {1 index eq {/_cnt _cnt 1 add ddef} if} forall pop
  349. exch _cnt mul exch _cnt mul 2 index add 4 1 roll 2 index add 4 1 roll pop pop
  350. } def
  351. /ss                    % ax ay string matrix ss -
  352. {
  353. 4 1 roll
  354.     {                % matrix ax ay char 0 0 {proc} -
  355.     2 npop 
  356.     (0) exch 2 copy 0 exch put pop
  357.     gsave
  358.     false charpath currentpoint
  359.     4 index setmatrix
  360.     stroke
  361.     grestore
  362.     moveto
  363.     2 copy rmoveto
  364.     } exch cshow
  365. 3 npop
  366. } def
  367. /jss                % cx cy fillchar ax ay string matrix jss -
  368. {
  369. 4 1 roll
  370.     {                % cx cy fillchar matrix ax ay char 0 0 {proc} -   
  371.     2 npop 
  372.     (0) exch 2 copy 0 exch put 
  373.     gsave
  374.     _sp eq 
  375.         {
  376.         exch 6 index 6 index 6 index 5 -1 roll widthshow  
  377.         currentpoint
  378.         }
  379.         {
  380.         false charpath currentpoint
  381.         4 index setmatrix stroke
  382.         }ifelse
  383.     grestore
  384.     moveto
  385.     2 copy rmoveto
  386.     } exch cshow
  387. 6 npop
  388. } def
  389.  
  390. % path operators
  391. /sp                    % ax ay string sp -
  392. {
  393.     {
  394.     2 npop (0) exch
  395.     2 copy 0 exch put pop
  396.     false charpath
  397.     2 copy rmoveto
  398.     } exch cshow
  399. 2 npop
  400. } def
  401. /jsp                    % cx cy fillchar ax ay string jsp -
  402. {
  403.     {                    % cx cy fillchar ax ay char 0 0 {proc} -
  404.     2 npop 
  405.     (0) exch 2 copy 0 exch put 
  406.     _sp eq 
  407.         {
  408.         exch 5 index 5 index 5 index 5 -1 roll widthshow  
  409.         }
  410.         {
  411.         false charpath
  412.         }ifelse
  413.     2 copy rmoveto
  414.     } exch cshow
  415. 5 npop
  416. } def
  417.  
  418. % path construction operators
  419. /pl                % x y pl x y
  420. {
  421. transform
  422. 0.25 sub round 0.25 add exch
  423. 0.25 sub round 0.25 add exch
  424. itransform
  425. } def
  426. /setstrokeadjust where
  427.     {
  428.     pop true setstrokeadjust
  429.     /c                % x1 y1 x2 y2 x3 y3 c -
  430.     {
  431.     curveto
  432.     } def
  433.     /C
  434.     /c load def
  435.     /v                % x2 y2 x3 y3 v -
  436.     {
  437.     currentpoint 6 2 roll curveto
  438.     } def
  439.     /V
  440.     /v load def
  441.     /y                % x1 y1 x2 y2 y -
  442.     {
  443.     2 copy curveto
  444.     } def
  445.     /Y
  446.     /y load def
  447.     /l                % x y l -
  448.     {
  449.     lineto
  450.     } def
  451.     /L
  452.     /l load def
  453.     /m                % x y m -
  454.     {
  455.     moveto
  456.     } def
  457.     }
  458.     {%else
  459.     /c
  460.     {
  461.     pl curveto
  462.     } def
  463.     /C
  464.     /c load def
  465.     /v
  466.     {
  467.     currentpoint 6 2 roll pl curveto
  468.     } def
  469.     /V
  470.     /v load def
  471.     /y
  472.     {
  473.     pl 2 copy curveto
  474.     } def
  475.     /Y
  476.     /y load def
  477.     /l
  478.     {
  479.     pl lineto
  480.     } def
  481.     /L
  482.     /l load def
  483.     /m
  484.     {
  485.     pl moveto
  486.     } def
  487.     }ifelse
  488.  
  489. % graphic state operators
  490. /d                    % array phase d -
  491. {
  492. setdash
  493. } def
  494. /cf    {} def            % - cf flatness
  495. /i                    % flatness i -
  496. {
  497. dup 0 eq
  498.     {
  499.     pop cf
  500.     } if
  501. setflat
  502. } def
  503. /j                    % linejoin j -
  504. {
  505. setlinejoin
  506. } def
  507. /J                    % linecap J -
  508. {
  509. setlinecap
  510. } def
  511. /M                    % miterlimit M -
  512. {
  513. setmiterlimit
  514. } def
  515. /w                    % linewidth w -
  516. {
  517. setlinewidth
  518. } def
  519.  
  520. % path painting operators
  521. /H                    % - H -
  522. {} def
  523. /h                    % - h -
  524. {
  525. closepath
  526. } def
  527. /N                    % - N -
  528. {
  529. _pola 0 eq 
  530.     {
  531.     _doClip 1 eq {clip /_doClip 0 ddef} if 
  532.     newpath
  533.     } 
  534.     {
  535.     /CRender {N} ddef
  536.     }ifelse
  537. } def
  538. /n                    % - n -
  539. {N} def
  540. /F                    % - F -
  541. {
  542. _pola 0 eq 
  543.     {
  544.     _doClip 1 eq 
  545.         {
  546.         gsave _pf grestore clip newpath /_lp /none ddef _fc 
  547.         /_doClip 0 ddef
  548.         }
  549.         {
  550.         _pf
  551.         }ifelse
  552.     } 
  553.     {
  554.     /CRender {F} ddef
  555.     }ifelse
  556. } def
  557. /f                    % - f -
  558. {
  559. closepath
  560. F
  561. } def
  562. /S                    % - S -
  563. {
  564. _pola 0 eq 
  565.     {
  566.     _doClip 1 eq 
  567.         {
  568.         gsave _ps grestore clip newpath /_lp /none ddef _sc 
  569.         /_doClip 0 ddef
  570.         }
  571.         {
  572.         _ps
  573.         }ifelse
  574.     } 
  575.     {
  576.     /CRender {S} ddef
  577.     }ifelse
  578. } def
  579. /s                    % - s -
  580. {
  581. closepath
  582. S
  583. } def
  584. /B                    % - B -
  585. {
  586. _pola 0 eq 
  587.     {
  588.     _doClip 1 eq     % F clears _doClip
  589.     gsave F grestore 
  590.         {
  591.         gsave S grestore clip newpath /_lp /none ddef _sc
  592.         /_doClip 0 ddef
  593.         } 
  594.         {
  595.         S
  596.         }ifelse
  597.     }
  598.     {
  599.     /CRender {B} ddef
  600.     }ifelse
  601. } def
  602. /b                    % - b -
  603. {
  604. closepath
  605. B
  606. } def
  607. /W                    % - W -
  608. {
  609. /_doClip 1 ddef
  610. } def
  611. /*                    % - [string] * -
  612. {
  613. count 0 ne 
  614.     {
  615.     dup type (stringtype) eq {pop} if
  616.     } if 
  617. _pola 0 eq {newpath} if
  618. } def
  619.  
  620. % group operators
  621. /u                    % - u -
  622. {} def
  623. /U                    % - U -
  624. {} def
  625. /q                    % - q -
  626. {
  627. _pola 0 eq {gsave} if
  628. } def
  629. /Q                    % - Q -
  630. {
  631. _pola 0 eq {grestore} if
  632. } def
  633. /*u                    % - *u -
  634. {
  635. _pola 1 add /_pola exch ddef
  636. } def
  637. /*U                    % - *U -
  638. {
  639. _pola 1 sub /_pola exch ddef 
  640. _pola 0 eq {CRender} if
  641. } def
  642. /D                    % polarized D -
  643. {pop} def
  644. /*w                    % - *w -
  645. {} def
  646. /*W                    % - *W -
  647. {} def
  648.  
  649. % place operators
  650. /`                    % matrix llx lly urx ury string ` -
  651. {
  652. /_i save ddef
  653. 6 1 roll 4 npop
  654. concat
  655. userdict begin
  656. /showpage {} def
  657. false setoverprint
  658. pop
  659. } def
  660. /~                    % - ~ -
  661. {
  662. end
  663. _i restore
  664. } def
  665.  
  666. % color operators
  667. /O                    % flag O -
  668. {
  669. 0 ne
  670. /_of exch ddef
  671. /_lp /none ddef
  672. } def
  673. /R                    % flag R -
  674. {
  675. 0 ne
  676. /_os exch ddef
  677. /_lp /none ddef
  678. } def
  679. /g                    % gray g -
  680. {
  681. /_gf exch ddef
  682. /_fc
  683. _lp /fill ne
  684.     {
  685.     _of setoverprint
  686.     _gf setgray
  687.     /_lp /fill ddef
  688.     } if
  689. } ddef
  690. /_pf
  691. {
  692. _fc
  693. fill
  694. } ddef
  695. /_psf
  696. {
  697. _fc
  698. ashow
  699. } ddef
  700. /_pjsf
  701. {
  702. _fc
  703. awidthshow
  704. } ddef
  705. /_lp /none ddef
  706. } def
  707. /G                    % gray G -
  708. {
  709. /_gs exch ddef
  710. /_sc
  711. {
  712. _lp /stroke ne
  713.     {
  714.     _os setoverprint
  715.     _gs setgray
  716.     /_lp /stroke ddef
  717.     } if
  718. } ddef
  719. /_ps
  720. {
  721. _sc
  722. stroke
  723. } ddef
  724. /_pss
  725. {
  726. _sc
  727. ss
  728. } ddef
  729. /_pjss
  730. {
  731. _sc
  732. jss
  733. } ddef
  734. /_lp /none ddef
  735. } def
  736. /k                    % cyan magenta yellow black k -
  737. {
  738. _cf astore pop
  739. /_fc
  740. {
  741. _lp /fill ne
  742.     {
  743.     _of setoverprint
  744.     _cf aload pop setcmykcolor
  745.     /_lp /fill ddef
  746.     } if
  747. } ddef
  748. /_pf
  749. {
  750. _fc
  751. fill
  752. } ddef
  753. /_psf
  754. {
  755. _fc
  756. ashow
  757. } ddef
  758. /_pjsf
  759. {
  760. _fc
  761. awidthshow
  762. } ddef
  763. /_lp /none ddef
  764. } def
  765. /K                    % cyan magenta yellow black K -
  766. {
  767. _cs astore pop
  768. /_sc
  769. {
  770. _lp /stroke ne
  771.     {
  772.     _os setoverprint
  773.     _cs aload pop setcmykcolor
  774.     /_lp /stroke ddef
  775.     } if
  776. } ddef
  777. /_ps
  778. {
  779. _sc
  780. stroke
  781. } ddef
  782. /_pss
  783. {
  784. _sc
  785. ss
  786. } ddef
  787. /_pjss
  788. {
  789. _sc
  790. jss
  791. } ddef
  792. /_lp /none ddef
  793. } def
  794. /x                    % cyan magenta yellow black name gray x -
  795. {
  796. /_gf exch ddef
  797. findcmykcustomcolor
  798. /_if exch ddef
  799. /_fc
  800. _lp /fill ne
  801.     {
  802.     _of setoverprint
  803.     _if _gf 1 exch sub setcustomcolor
  804.     /_lp /fill ddef
  805.     } if
  806. } ddef
  807. /_pf
  808. {
  809. _fc
  810. fill
  811. } ddef
  812. /_psf
  813. {
  814. _fc
  815. ashow
  816. } ddef
  817. /_pjsf
  818. {
  819. _fc
  820. awidthshow
  821. } ddef
  822. /_lp /none ddef
  823. } def
  824. /X                    % cyan magenta yellow black name gray X -
  825. {
  826. /_gs exch ddef
  827. findcmykcustomcolor
  828. /_is exch ddef
  829. /_sc
  830. {
  831. _lp /stroke ne
  832.     {
  833.     _os setoverprint
  834.     _is _gs 1 exch sub setcustomcolor
  835.     /_lp /stroke ddef
  836.     } if
  837. } ddef
  838. /_ps
  839. {
  840. _sc
  841. stroke
  842. } ddef
  843. /_pss
  844. {
  845. _sc
  846. ss
  847. } ddef
  848. /_pjss
  849. {
  850. _sc
  851. jss
  852. } ddef
  853. /_lp /none ddef
  854. } def
  855.  
  856. % locked object operator
  857. /A                    % value A -
  858. {
  859. pop
  860. } def
  861.  
  862. currentdict readonly pop end
  863. setpacking
  864.  
  865. % annotate page operator
  866. /annotatepage
  867. {
  868. } def
  869. %%EndResource
  870.  
  871.